<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<div class="header">
    <div class="header-content">
        <h1>Blue Bumpkin Manager</h1>
        <div class="user-tool">
            <sec:authorize ifAnyGranted="ROLE_USER">
                Xin chào Admin
                <s:url value="/j_spring_security_logout" var="logout"/>
                <a href="<s:property value="#logout"/>">Logout</a>
            </sec:authorize>
            <sec:authorize ifNotGranted="ROLE_USER">
                <strong><a href="<s:url value="/login"/>">Login | </a></strong>
                <strong><a href="<s:url value="/register"/>">Register</a></strong>
            </sec:authorize>
            <s:property value="curLoginAccount"/>
        </div>
    </div>
</div>

